#ifndef LOGINVIEWMODEL_H
#define LOGINVIEWMODEL_H

#include <QObject>
#include "TcpService.hpp"

class LoginViewModel : public QObject
{
    Q_OBJECT
public:
    explicit LoginViewModel(QObject *parent = nullptr, TcpService* tcpclient = nullptr);

    bool loginRequest(const QString& usernumber, const QString& password);
public slots:
    void respHandle(const ProtocolPtr &ptr);

signals:
private:
    TcpService* tcpclient;
};

#endif // LOGINVIEWMODEL_H
